CQuestionnaire.cs
Code Type: C# Class
Uses Classes: CDataParameterList, CDataSet
Uses PL/SQL Procedures: PCK_QUESTIONNAIRES.GetModuleRS, PCK_QUESTIONNAIRES.GetModuleTopicRS, PCK_QUESTIONNAIRES.GetQuestionRS, PCK_QUESTIONNAIRES.GetResponseRS, PCK_QUESTIONNAIRES.GetStatData, PCK_QUESTIONNAIRES.GetSkipPatternRS, PCK_QUESTIONNAIRES.GetMaskRS, PCK_QUESTIONNAIRES.GetNextModuleRS

Lines of Code: 281

public class CQuestionnaire

	CQuestionnaire Gets all data from the DB tables to render instruments on screen 

private BaseMaster m_BaseMstr

	Instantiate the BaseMaster Class to be used in the DB transactions 

public CQuestionnaire(BaseMaster BaseMstr)

	Constructor method for CQuestionnaire 

public DataSet GetModuleDS(long lMID)

	 Gets a dataset from INTAKE_MODULE table for the passed in module id 

public DataSet GetModuleTopicDS(long lMID)

	 Gets a dataset from INTAKE_TOPIC table for the passed in module id 

public DataSet GetQuestionDS(long lMID, long lTID)

	 Gets a questions dataset from INTAKE_QUESTION table for the passed in module id, topic id 

public DataSet GetResponseDS(long lMID, long lTID, long lQID)

	 Gets a responses dataset from INTAKE_QUESTION table for the passed in module id, topic id and question id 

public DataSet GetStaticDataDS(long lMID, long lTID, long lQID, long lRID)

	 Gets a dataset used to populate combo boxes (display_type = 4) 

public string GetQuestionnaire(long lMID)

	 Combines the dataset for modules, topics, questions, responses then build and returns a nested XML string with all the instrument's data 

public DataSet GetSkipPatternDS(long lMID)

	 Gets a dataset for the responses that contains skip rules 

public string GetSkipPattern(long lMID)

	 Builds a JSON string for the skip patterns to be followed in the instrument 

public DataSet GetMaskDS(long lMID)

	 Gets a dataset for the textbox responses that have an input mask 

public string GetMask(long lMID)

	 Builds a JSON string for the input masks to be applied to the textbox controls 

	

